﻿using GGGK.Film.Comm;
using GGGK.Film.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GGGK.Film.Repository
{
    public class BaseQueryRepository : IBaseQueryRepository
    {
        public T ExecuteScalar<T>(string sql, object param)
        {
            return DapperHelper.ExecuteScalar<T>(sql, param);
        }

        public IEnumerable<T> Query<T>(string sql, object param)
        {
            return DapperHelper.Query<T>(sql, param);
        }
    }
}
